home *** CD-ROM | disk | FTP | other *** search
- Path: news.sunquest.com!kitk!kitk
- From: kitk@mudshark.sunquest.com (Kit Kauffmann)
- Newsgroups: comp.lang.c++
- Subject: Re: Derivation and calling virtual functions
- Date: Thu, 4 Apr 1996 13:01:42
- Organization: Sunquest
- Message-ID: <kitk.2164.000D07B0@mudshark.sunquest.com>
- References: <graphix.828032689@spiff.cc.iastate.edu> <4jeulg$n9v@crc-news.doc.ca> <315F5B3E.E384E7C@alcyone.com>
- NNTP-Posting-Host: kkauffma.sunquest.com
- X-Newsreader: Trumpet for Windows [Version 1.0 Rev A]
-
- In article <315F5B3E.E384E7C@alcyone.com> Erik Max Francis <max@alcyone.com> writes:
-
- >Slobodan Celenkovic wrote:
-
- >> Don't you need virtual keywords in Derived as well?
-
- >No, unless you intend to override those functions in _further_ subclasses.
-
- >--
- >Erik Max Francis &tSftDotIotE && http://www.alcyone.com/max && max@alcyone.com
- >San Jose, California, U.S.A. && 37 20 07 N 121 53 38 W && the 4th R is respect
- >H.3`S,3,P,3$S,#$Q,C`Q,3,P,3$S,#$Q,3`Q,3,P,C$Q,#(Q.#`-"C`- && 1love && folasade
- >Omnia quia sunt, lumina sunt. && Dominion, GIGO, GOOGOL, Omega, Psi, Strategem
- >"Out from his breast/his soul went to seek/the doom of the just." -- _Beowulf_
-
- I don't think that is true - only the first declaration must say virtual - all
- derived classes, regardless of how many levels of derivation there are, see
- that method as virtual.
-
- I like to use it in all derived classes for documentation purposes, but it is
- optional, AFAIK
-
-
- Kit Kauffmann - kitk@mudshark.sunquest.com
- AKA 73363,447 (Compu$erve)
-
- Finger me for my public key
-